package com.gzx.plugin.tjzy.modular.fm.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class RingEventResponseDto implements Serializable {

    private String resultCode;

    private String msg;

    private Boolean data;

    // 静态工厂方法创建成功/失败响应
    public static RingEventResponseDto success() {
        return new RingEventResponseDto("000000", "Success", true);
    }

    public static RingEventResponseDto fail(String code, String msg) {
        return new RingEventResponseDto(code, msg, false);
    }
}

